//
//  SFPlayerResourceLoader.h
//  Test
//
//  Created by xueshan1 on 2018/11/14.
//  Copyright © 2018年 xueshan1. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
@class SFPlayerResourceLoader;
@protocol SFPlayerResourceLoadDelegate <NSObject>

- (void)resourceLoader:(SFPlayerResourceLoader *)loader cacheProgress:(CGFloat)cacheProgress;

@end
NS_ASSUME_NONNULL_BEGIN

@interface SFPlayerResourceLoader : NSObject<AVAssetResourceLoaderDelegate>

@property(nonatomic,weak)id<SFPlayerResourceLoadDelegate>delegate;
@property(nonatomic,assign)BOOL cacheFinished;
@property(nonatomic,assign)BOOL isSeek;
- (void)stopLoadding;

@end

NS_ASSUME_NONNULL_END
